package com.tg.service.base;

import com.tg.service.utils.ContextUtil;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.context.ConfigurableApplicationContext;
import org.springframework.context.annotation.ComponentScan;

@SpringBootApplication
//********contextandfactory********
//@ComponentScan({"com.tg.service.base.contextandfactory", "com.tg.service.base.common"})
//@ComponentScan({"com.tg.service.base.common", "com.tg.service.base.contextandfactory"})
//********dependsOn.component********
//@ComponentScan({"com.tg.service.base.common", "com.tg.service.base.dependson.component"})

//********single********
@ComponentScan({"com.tg.service.base.common", "com.tg.service.base.single"})
public class CreateBeanApp {

    public static void main(String[] args) {
        ConfigurableApplicationContext ctx = SpringApplication.run(CreateBeanApp.class, args);
        ContextUtil.setApplicationContext(ctx);
    }
}
